#include "UdpServer.hpp"
#include "Log.hpp"
#include <memory>
using std::endl;
using std::cout;
Log lg;

//"196.180.14.23" 点分十进制 

int main(int argc, char* argv[])
{
    if(argc != 2)
    {
        cout<<"\n\rUsage: "<<argv[0]<<" port[1024+]\n"<<endl;
        exit(0);
    }
    uint16_t port = std::stoi(argv[1]);
    std::unique_ptr<UdpServer> svr(new UdpServer(port,"192.168.40.128"));

    svr->Init();
    svr->Run();


}